<script>
	import service from "service/service.js"
	export default {
		onLaunch: function() {
			// console.log('App Launch')
			// var userInfo = {
			// 	account: "zhangsan",
			// 	password: "123"
			// }
			// service.setUserInfo(userInfo)
		},
		onShow: function() {
			// console.log('App Show')
			// var user = service.getUserInfo()
			// console.log(user)
			// var hasLogin = true
			// hasLogin ? uni.navigateTo({
			// 		url:"pages/login/login"
			// 	}) :
				uni.navigateTo({
					url:"pages/home"
				})
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import url("common/icon.css")
</style>
